package com.yidu.ruifeng_logistics.controller;

import com.yidu.ruifeng_logistics.entity.LogisticsLog;
import com.yidu.ruifeng_logistics.service.LogisticsLogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (LogisticsLog)表控制层
 *
 * @author makejava
 * @since 2021-03-09 14:24:40
 */
@RestController
@RequestMapping("logisticsLog")
public class LogisticsLogController {
    /**
     * 服务对象
     */
    @Resource
    private LogisticsLogService logisticsLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public LogisticsLog selectOne(Integer id) {
        return this.logisticsLogService.queryById(id);
    }

}
